PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Appearance Manager >

Programming With the Appearance Manager


GetThemeTextColor

Obtains the text color used for a specified element under the current theme.

pascal OSStatus GetThemeTextColor (
                     ThemeTextColor inColor,
                     SInt16 inDepth,
                     Boolean inColorDev,
                     RGBColor *outColor);
inColor
A value of type ThemeTextColor . Pass a constant specifying the element for which you wish to obtain the current text color; see Theme Text Color Constants for descriptions of possible values.
inDepth
A signed 16-bit integer. Pass a value specifying the bit depth (in bits per pixel) of the current graphics port.
inColorDev
A value of type Boolean . Pass true to indicate that you are drawing on a color device. Pass false for a monochrome device.
outColor
A pointer to a structure of type RGBColor . On return, the structure contains the text color used for the specified element under the current theme.
function result
A result code; see Result Codes .
VERSION NOTES

Available with Appearance Manager 1.1 and later.

SEE ALSO

The function SetThemeTextColor .


© 1999 Apple Computer, Inc. – (Last Updated 29 April 99)